package com.hbx.platform.auth.domain;


import com.hbx.platform.base.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hbx
 * @since 2024-04-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Permission extends BaseDomain {

    private static final long serialVersionUID = 1L;

    private String name;
    private String url;
    private String descs;
    private String sn;
    //父级权限的id
    private Long parentId;
    //父级权限
    private Permission parent;

    private List<Permission> children;

}
